package com.qf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Controller
public class ViewController {

    @GetMapping("/{page}.html")
    public String toPage(@PathVariable String page) {
        System.out.println("page = " + page);
        return page;
    }
}
